﻿using Microsoft.Reporting.WebForms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Assessor_AssesorBill : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //this.usp_ReportPersonByIDTableAdapter.Fill(this.HeaderPerson.usp_ReportPersonByID, 1);
        //Place it First before Refresh    
        //e.DataSources.Add(new ReportDataSource("AssessorByCandidateDetails", this.ObjectDataSource1));
        //this.ReportViewer1.LocalReport.SubreportProcessing += LocalReport_SubreportProcessing; //
       // this.
        this.ReportViewer1.LocalReport.Refresh();
    }

    void LocalReport_SubreportProcessing(object sender, Microsoft.Reporting.WebForms.SubreportProcessingEventArgs e)
    {
        //int Per_ID = Convert.ToInt32(e.Parameters["Per_ID"].Values[0].ToString());

        //. .Fill(DetailPerson.usp_GetPZones, Per_ID);
        //e.DataSources.Add(new ReportDataSource("AssessorByCandidateDetails", this.ObjectDataSource1));
        //throw new NotImplementedException();
    }
}